<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: D:/Home/MFF/1-Mgr/projekt/pepr3d/src/ui/ModelView.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_model_view_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">ModelView.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;cinder/Utilities.h&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;cinder/gl/gl.h&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;glm/glm.hpp&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;peprimgui.h&quot;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;ui/CameraUi.h&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;chrono&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;geometry/TrianglePrimitive.h&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacepepr3d.html">pepr3d</a> {</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">class </span>MainApplication;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html">   19</a></span>&#160;<span class="keyword">class </span><a class="code" href="classpepr3d_1_1_model_view.html">ModelView</a> {</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keyword">explicit</span> <a class="code" href="classpepr3d_1_1_model_view.html">ModelView</a>(<a class="code" href="classpepr3d_1_1_main_application.html">MainApplication</a>&amp; app) : mApplication(app) {}</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <span class="comment">// TODO: Hide this behind some api</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    std::vector&lt;glm::vec3&gt; previewTriangles;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    std::vector&lt;uint32_t&gt; previewIndices;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    std::vector&lt;glm::vec4&gt; previewColors;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    std::vector&lt;glm::vec3&gt; previewNormals;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keywordtype">void</span> resetPreview() {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        previewTriangles.clear();</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        previewIndices.clear();</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        previewColors.clear();</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        previewNormals.clear();</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    }</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a76ad73738050d3aabb681b53e5ea8398">setup</a>();</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#ab25e5abfcab1d8869e2ef78b44c98721">resize</a>();</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a3336add9f3f59fb474713d4552590a5c">draw</a>();</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#ab428e44311e1ada48f4224f1cfd32915">drawGeometry</a>();</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#aa8dcae17a2801bbc3f6f26d919f12224">onMouseDown</a>(ci::app::MouseEvent event);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a661a9c2b434be28bee4b2f30052031f2">onMouseDrag</a>(ci::app::MouseEvent event);</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a872e02f519f6737a69b427271f6e6c96">onMouseUp</a>(ci::app::MouseEvent event);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a90934c651648861138d6d754be15c140">onMouseWheel</a>(ci::app::MouseEvent event);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a7223e1c00bbf6401b11b55d49bed71c5">onMouseMove</a>(ci::app::MouseEvent event);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    ci::Ray <a class="code" href="classpepr3d_1_1_model_view.html#add99723c6e0ac1041b29b9a54902b157">getRayFromWindowCoordinates</a>(glm::ivec2 windowCoords) <span class="keyword">const</span>;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#ab31d990c6c32a93af35258ce2e512db2">drawTriangleHighlight</a>(<span class="keyword">const</span> <a class="code" href="structpepr3d_1_1_detailed_triangle_id.html">DetailedTriangleId</a> triangleId);</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#a82f24b5d17a8352e76a69d87f4359d39">   70</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a82f24b5d17a8352e76a69d87f4359d39">drawTriangleHighlight</a>(<span class="keyword">const</span> <span class="keywordtype">size_t</span> triangleIdx) {</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <a class="code" href="classpepr3d_1_1_model_view.html#ab31d990c6c32a93af35258ce2e512db2">drawTriangleHighlight</a>(<a class="code" href="structpepr3d_1_1_detailed_triangle_id.html">DetailedTriangleId</a>(triangleIdx));</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    }</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a55cdb6c309001e315259b9c2151ed571">drawLine</a>(<span class="keyword">const</span> glm::vec3&amp; from, <span class="keyword">const</span> glm::vec3&amp; to, <span class="keyword">const</span> ci::Color&amp; color = ci::Color::white(),</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                  <span class="keywordtype">float</span> width = 1.0f, <span class="keywordtype">bool</span> depthTest = <span class="keyword">false</span>);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a338d7d487eaf95ca572a0ad63508d42f">drawCaption</a>(<span class="keyword">const</span> std::string&amp; caption, <span class="keyword">const</span> std::string&amp; errorCaption);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#af9463d814c0df630235f7f7ac212eb54">   83</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_model_view.html#af9463d814c0df630235f7f7ac212eb54">isWireframeEnabled</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <span class="keywordflow">return</span> mIsWireframeEnabled;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    }</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#ad6af1ab71ae31eb1a1e9290a1e5e45e3">   88</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#ad6af1ab71ae31eb1a1e9290a1e5e45e3">enableWireframe</a>(<span class="keywordtype">bool</span> enable = <span class="keyword">true</span>) {</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        mIsWireframeEnabled = enable;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    }</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#af233e744e89acdc27258033377f9f14e">   93</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_model_view.html#af233e744e89acdc27258033377f9f14e">isGridEnabled</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="keywordflow">return</span> mIsGridEnabled;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    }</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#a43a0d49736a4f8b204b93594d964f308">   98</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a43a0d49736a4f8b204b93594d964f308">enableGrid</a>(<span class="keywordtype">bool</span> enable = <span class="keyword">true</span>) {</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        mIsGridEnabled = enable;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    }</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#a359a106369373c8e669649fac95e8cf4">  103</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classpepr3d_1_1_model_view.html#a359a106369373c8e669649fac95e8cf4">getModelRoll</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <span class="keywordflow">return</span> mModelRoll;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    }</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#a91d166d8c1ff522ed0b37ba9e4a16501">  108</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a91d166d8c1ff522ed0b37ba9e4a16501">setModelRoll</a>(<span class="keywordtype">float</span> roll) {</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        mModelRoll = roll;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    }</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#aa02348736ac32b98423eb091c74ee0a2">  113</a></span>&#160;    glm::vec3 <a class="code" href="classpepr3d_1_1_model_view.html#aa02348736ac32b98423eb091c74ee0a2">getModelTranslate</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="keywordflow">return</span> mModelTranslate;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    }</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#a746d83e4e97ca487e3c78c4576b808d9">  118</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a746d83e4e97ca487e3c78c4576b808d9">setModelTranslate</a>(glm::vec3 translate) {</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        mModelTranslate = translate;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    }</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a2fc846e84bbc088d430d65d29dabb663">resetCamera</a>();</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#afc02d10fd1a5a0607a6a494475139993">  127</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#afc02d10fd1a5a0607a6a494475139993">setFovZoomEnabled</a>(<span class="keywordtype">bool</span> enabled) {</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        <a class="code" href="classpepr3d_1_1_model_view.html#a2fc846e84bbc088d430d65d29dabb663">resetCamera</a>();</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        mCameraUi.setFovZoomEnabled(enabled);</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    }</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#a9d6337d9cc434235ed959b6efb22ca83">  134</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_model_view.html#a9d6337d9cc434235ed959b6efb22ca83">isFovZoomEnabled</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        <span class="keywordflow">return</span> mCameraUi.isFovZoomEnabled();</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    }</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#a4c1fd212021f24db3f703f039bcc3bf2">  139</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a4c1fd212021f24db3f703f039bcc3bf2">toggleMeshOverride</a>(<span class="keywordtype">bool</span> newState) {</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        mMeshOverride.isOverriden = newState;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        <a class="code" href="classpepr3d_1_1_model_view.html#a4546779d56626083622f7bdefcbd0bde">forceBatchRefresh</a>();</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    }</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#a4546779d56626083622f7bdefcbd0bde">  145</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a4546779d56626083622f7bdefcbd0bde">forceBatchRefresh</a>() {</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        mBatch = <span class="keyword">nullptr</span>;  <span class="comment">// reset batch to force update</span></div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    }</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#a27cbaf51762a74685b86a58103b5a1e8">  150</a></span>&#160;    std::vector&lt;glm::vec4&gt;&amp; <a class="code" href="classpepr3d_1_1_model_view.html#a27cbaf51762a74685b86a58103b5a1e8">getOverrideColorBuffer</a>() {</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        <span class="keywordflow">return</span> mMeshOverride.overrideColorBuffer;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    }</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#a7dbddb9b59b9c869b9ee48bc0fcd03c2">  155</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_model_view.html#a7dbddb9b59b9c869b9ee48bc0fcd03c2">isMeshOverriden</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        <span class="keywordflow">return</span> mMeshOverride.isOverriden;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    }</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#aebca60d3e5b812601056f52918154370">  160</a></span>&#160;    std::vector&lt;glm::vec3&gt;&amp; <a class="code" href="classpepr3d_1_1_model_view.html#aebca60d3e5b812601056f52918154370">getOverrideVertexBuffer</a>() {</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        <span class="keywordflow">return</span> mMeshOverride.overrideVertexBuffer;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    }</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#abe2f0a133e9bb7aa5cb1fba102f4a1e1">  165</a></span>&#160;    std::vector&lt;glm::vec3&gt;&amp; <a class="code" href="classpepr3d_1_1_model_view.html#abe2f0a133e9bb7aa5cb1fba102f4a1e1">getOverrideNormalBuffer</a>() {</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        <span class="keywordflow">return</span> mMeshOverride.overrideNormalBuffer;</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    }</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#a8cbad5b695e0e63ff5b77545bcc77286">  170</a></span>&#160;    std::vector&lt;uint32_t&gt;&amp; <a class="code" href="classpepr3d_1_1_model_view.html#a8cbad5b695e0e63ff5b77545bcc77286">getOverrideIndexBuffer</a>() {</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        <span class="keywordflow">return</span> mMeshOverride.overrideIndexBuffer;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    }</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#ae6cfd84f9d3dc6d3c98e8dcc905dba42">initOverrideFromBasicGeoemtry</a>();</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#aa7a7110a5396aee8bb3261c8d191dc28">  178</a></span>&#160;    glm::vec2 <a class="code" href="classpepr3d_1_1_model_view.html#aa7a7110a5396aee8bb3261c8d191dc28">getPreviewMinMaxHeight</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        <span class="keywordflow">return</span> mPreviewMinMaxHeight;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    }</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;</div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#ac813369be27a029b6f2ecf32eae5c612">  183</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#ac813369be27a029b6f2ecf32eae5c612">setPreviewMinMaxHeight</a>(glm::vec2 minMax) {</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        mPreviewMinMaxHeight = minMax;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        mModelShader-&gt;uniform(<span class="stringliteral">&quot;uPreviewMinMaxHeight&quot;</span>, mPreviewMinMaxHeight);</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    }</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_model_view.html#af9f8bb7d19cca89bc4cdfc8f958c0eaa">  189</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classpepr3d_1_1_model_view.html#af9f8bb7d19cca89bc4cdfc8f958c0eaa">getMaxSize</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        <span class="keywordflow">return</span> mMaxSize;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    }</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a324a3111305b1a127e61e628b1a8e066">onNewGeometryLoaded</a>();</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    glm::mat4 getModelMatrix()<span class="keyword"> const </span>{</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        <span class="keywordflow">return</span> mModelMatrix;</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    }</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="keyword">const</span> ci::CameraPersp&amp; getCamera()<span class="keyword"> const </span>{</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        <span class="keywordflow">return</span> mCamera;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    }</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;   <span class="keyword">private</span>:</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    MainApplication&amp; mApplication;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    ci::gl::VboMeshRef mVboMesh;</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    ci::gl::BatchRef mBatch;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    std::pair&lt;glm::ivec2, glm::ivec2&gt; mViewport;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    ci::CameraPersp mCamera;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    <a class="code" href="classpepr3d_1_1_camera_ui.html">pepr3d::CameraUi</a> mCameraUi;</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    ci::gl::GlslProgRef mModelShader;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <span class="keywordtype">bool</span> mIsWireframeEnabled = <span class="keyword">false</span>;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <span class="keywordtype">bool</span> mIsGridEnabled = <span class="keyword">true</span>;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <span class="keywordtype">float</span> mGridOffset = 0.0f;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    glm::mat4 mModelMatrix;</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="keywordtype">float</span> mModelRoll = 0.0f;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    glm::vec3 mModelTranslate = glm::vec3(0);</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keywordtype">float</span> mMaxSize = 1.f;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    glm::vec2 mPreviewMinMaxHeight = glm::vec2(0.0f, 1.0f);</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="structpepr3d_1_1_model_view_1_1_mesh_data_override.html">  224</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structpepr3d_1_1_model_view_1_1_mesh_data_override.html">MeshDataOverride</a> {</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        <span class="keywordtype">bool</span> isOverriden = <span class="keyword">false</span>;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        std::vector&lt;glm::vec3&gt; overrideVertexBuffer;</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        std::vector&lt;glm::vec3&gt; overrideNormalBuffer;</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        std::vector&lt;uint32_t&gt; overrideIndexBuffer;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        std::vector&lt;glm::vec4&gt; overrideColorBuffer;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    } mMeshOverride;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#a13a0075d890659252e739cb212f5ce1a">updateModelMatrix</a>();</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_model_view.html#acd9a0fe559b6443aa3baeae23fd21809">updateVboAndBatch</a>();</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="structpepr3d_1_1_model_view_1_1_attributes.html">  241</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structpepr3d_1_1_model_view_1_1_attributes.html">Attributes</a> {</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> cinder::geom::Attrib COLOR_IDX = cinder::geom::Attrib::CUSTOM_0;</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> cinder::geom::Attrib HIGHLIGHT_MASK = cinder::geom::Attrib::CUSTOM_1;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    };</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;};</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;}  <span class="comment">// namespace pepr3d</span></div><div class="ttc" id="classpepr3d_1_1_model_view_html_ab31d990c6c32a93af35258ce2e512db2"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#ab31d990c6c32a93af35258ce2e512db2">pepr3d::ModelView::drawTriangleHighlight</a></div><div class="ttdeci">void drawTriangleHighlight(const DetailedTriangleId triangleId)</div><div class="ttdoc">Draws a highlight (3 lines with a contrasting color) of a specified DetailedTriangleId.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:351</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a4546779d56626083622f7bdefcbd0bde"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a4546779d56626083622f7bdefcbd0bde">pepr3d::ModelView::forceBatchRefresh</a></div><div class="ttdeci">void forceBatchRefresh()</div><div class="ttdoc">Batch data is going to be created again before rendering new frame. This will apply the overriden mes...</div><div class="ttdef"><b>Definition:</b> ModelView.h:145</div></div>
<div class="ttc" id="namespacepepr3d_html"><div class="ttname"><a href="namespacepepr3d.html">pepr3d</a></div><div class="ttdoc">Fix for CGAL bugs in polygon with holes verification Contained in CGAL PR #3688, likely to be in 4....</div><div class="ttdef"><b>Definition:</b> CmdColorManager.h:9</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_add99723c6e0ac1041b29b9a54902b157"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#add99723c6e0ac1041b29b9a54902b157">pepr3d::ModelView::getRayFromWindowCoordinates</a></div><div class="ttdeci">ci::Ray getRayFromWindowCoordinates(glm::ivec2 windowCoords) const</div><div class="ttdoc">Returns a 3D ray in the Geometry scene computed from window coordinates.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:285</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a359a106369373c8e669649fac95e8cf4"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a359a106369373c8e669649fac95e8cf4">pepr3d::ModelView::getModelRoll</a></div><div class="ttdeci">float getModelRoll() const</div><div class="ttdoc">Returns the current roll (rotation in the axis not controlled by CameraUi) of the Geometry object.</div><div class="ttdef"><b>Definition:</b> ModelView.h:103</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a3336add9f3f59fb474713d4552590a5c"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a3336add9f3f59fb474713d4552590a5c">pepr3d::ModelView::draw</a></div><div class="ttdeci">void draw()</div><div class="ttdoc">Draws the ModelView, both ImGui and the Geometry.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:31</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_af9463d814c0df630235f7f7ac212eb54"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#af9463d814c0df630235f7f7ac212eb54">pepr3d::ModelView::isWireframeEnabled</a></div><div class="ttdeci">bool isWireframeEnabled() const</div><div class="ttdoc">Returns true if wireframe of Geometry is rendered.</div><div class="ttdef"><b>Definition:</b> ModelView.h:83</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_aebca60d3e5b812601056f52918154370"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#aebca60d3e5b812601056f52918154370">pepr3d::ModelView::getOverrideVertexBuffer</a></div><div class="ttdeci">std::vector&lt; glm::vec3 &gt; &amp; getOverrideVertexBuffer()</div><div class="ttdoc">Returns a reference to the override vertex buffer, so you can read it or write to it.</div><div class="ttdef"><b>Definition:</b> ModelView.h:160</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a13a0075d890659252e739cb212f5ce1a"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a13a0075d890659252e739cb212f5ce1a">pepr3d::ModelView::updateModelMatrix</a></div><div class="ttdeci">void updateModelMatrix()</div><div class="ttdoc">Recalculates the model matrix of the current Geometry object. The model matrix ensures that the objec...</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:243</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a324a3111305b1a127e61e628b1a8e066"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a324a3111305b1a127e61e628b1a8e066">pepr3d::ModelView::onNewGeometryLoaded</a></div><div class="ttdeci">void onNewGeometryLoaded()</div><div class="ttdoc">Called by MainAplication when new geometry is loaded.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:187</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_af9f8bb7d19cca89bc4cdfc8f958c0eaa"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#af9f8bb7d19cca89bc4cdfc8f958c0eaa">pepr3d::ModelView::getMaxSize</a></div><div class="ttdeci">float getMaxSize() const</div><div class="ttdoc">Returns the maximum size (in the X, Y, Z axes) of the current Geometry object.</div><div class="ttdef"><b>Definition:</b> ModelView.h:189</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_aa7a7110a5396aee8bb3261c8d191dc28"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#aa7a7110a5396aee8bb3261c8d191dc28">pepr3d::ModelView::getPreviewMinMaxHeight</a></div><div class="ttdeci">glm::vec2 getPreviewMinMaxHeight() const</div><div class="ttdoc">Returns the minimum (first) and maximum (second) height that is rendered in the ModelView.</div><div class="ttdef"><b>Definition:</b> ModelView.h:178</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_aa02348736ac32b98423eb091c74ee0a2"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#aa02348736ac32b98423eb091c74ee0a2">pepr3d::ModelView::getModelTranslate</a></div><div class="ttdeci">glm::vec3 getModelTranslate() const</div><div class="ttdoc">Gets the 3D translation of the Geometry object.</div><div class="ttdef"><b>Definition:</b> ModelView.h:113</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a90934c651648861138d6d754be15c140"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a90934c651648861138d6d754be15c140">pepr3d::ModelView::onMouseWheel</a></div><div class="ttdeci">void onMouseWheel(ci::app::MouseEvent event)</div><div class="ttdoc">On mouse-wheel event over the ModelView area.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:133</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a9d6337d9cc434235ed959b6efb22ca83"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a9d6337d9cc434235ed959b6efb22ca83">pepr3d::ModelView::isFovZoomEnabled</a></div><div class="ttdeci">bool isFovZoomEnabled() const</div><div class="ttdoc">Returns true if the camera zoom is field-of-view based (so on zoom, the camera position does not chan...</div><div class="ttdef"><b>Definition:</b> ModelView.h:134</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a27cbaf51762a74685b86a58103b5a1e8"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a27cbaf51762a74685b86a58103b5a1e8">pepr3d::ModelView::getOverrideColorBuffer</a></div><div class="ttdeci">std::vector&lt; glm::vec4 &gt; &amp; getOverrideColorBuffer()</div><div class="ttdoc">Returns a reference to the override color buffer, so you can read it or write to it.</div><div class="ttdef"><b>Definition:</b> ModelView.h:150</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a2fc846e84bbc088d430d65d29dabb663"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a2fc846e84bbc088d430d65d29dabb663">pepr3d::ModelView::resetCamera</a></div><div class="ttdeci">void resetCamera()</div><div class="ttdoc">Resets the camera to the default position.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:148</div></div>
<div class="ttc" id="structpepr3d_1_1_model_view_1_1_attributes_html"><div class="ttname"><a href="structpepr3d_1_1_model_view_1_1_attributes.html">pepr3d::ModelView::Attributes</a></div><div class="ttdoc">Custom OpenGL attributes.</div><div class="ttdef"><b>Definition:</b> ModelView.h:241</div></div>
<div class="ttc" id="structpepr3d_1_1_detailed_triangle_id_html"><div class="ttname"><a href="structpepr3d_1_1_detailed_triangle_id.html">pepr3d::DetailedTriangleId</a></div><div class="ttdoc">Triangle ID in all detailed triangles Face index in mMeshDetailed faces;.</div><div class="ttdef"><b>Definition:</b> TrianglePrimitive.h:10</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a338d7d487eaf95ca572a0ad63508d42f"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a338d7d487eaf95ca572a0ad63508d42f">pepr3d::ModelView::drawCaption</a></div><div class="ttdeci">void drawCaption(const std::string &amp;caption, const std::string &amp;errorCaption)</div><div class="ttdoc">Draws a text label (caption) to the top left corner. caption is black, errorCaption is red and below ...</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:387</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html"><div class="ttname"><a href="classpepr3d_1_1_model_view.html">pepr3d::ModelView</a></div><div class="ttdoc">The main part of the user interface, shows the geometry to the user.</div><div class="ttdef"><b>Definition:</b> ModelView.h:19</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_ac813369be27a029b6f2ecf32eae5c612"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#ac813369be27a029b6f2ecf32eae5c612">pepr3d::ModelView::setPreviewMinMaxHeight</a></div><div class="ttdeci">void setPreviewMinMaxHeight(glm::vec2 minMax)</div><div class="ttdoc">Sets the minimum (first) and maximum (second) height that is rendered in the ModelView.</div><div class="ttdef"><b>Definition:</b> ModelView.h:183</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a7dbddb9b59b9c869b9ee48bc0fcd03c2"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a7dbddb9b59b9c869b9ee48bc0fcd03c2">pepr3d::ModelView::isMeshOverriden</a></div><div class="ttdeci">bool isMeshOverriden() const</div><div class="ttdoc">Returns true if the mesh data is overriden. (A mesh different from the geometry is being displayed)</div><div class="ttdef"><b>Definition:</b> ModelView.h:155</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a4c1fd212021f24db3f703f039bcc3bf2"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a4c1fd212021f24db3f703f039bcc3bf2">pepr3d::ModelView::toggleMeshOverride</a></div><div class="ttdeci">void toggleMeshOverride(bool newState)</div><div class="ttdoc">Enables or disables vertex, normal, and index buffer override (all at once)</div><div class="ttdef"><b>Definition:</b> ModelView.h:139</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a661a9c2b434be28bee4b2f30052031f2"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a661a9c2b434be28bee4b2f30052031f2">pepr3d::ModelView::onMouseDrag</a></div><div class="ttdeci">void onMouseDrag(ci::app::MouseEvent event)</div><div class="ttdoc">On mouse-drag event over the ModelView area.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:115</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a43a0d49736a4f8b204b93594d964f308"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a43a0d49736a4f8b204b93594d964f308">pepr3d::ModelView::enableGrid</a></div><div class="ttdeci">void enableGrid(bool enable=true)</div><div class="ttdoc">Sets whether the grid below the Geometry should be rendered.</div><div class="ttdef"><b>Definition:</b> ModelView.h:98</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_af233e744e89acdc27258033377f9f14e"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#af233e744e89acdc27258033377f9f14e">pepr3d::ModelView::isGridEnabled</a></div><div class="ttdeci">bool isGridEnabled() const</div><div class="ttdoc">Returns true if the grid below the Geometry is rendered.</div><div class="ttdef"><b>Definition:</b> ModelView.h:93</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a55cdb6c309001e315259b9c2151ed571"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a55cdb6c309001e315259b9c2151ed571">pepr3d::ModelView::drawLine</a></div><div class="ttdeci">void drawLine(const glm::vec3 &amp;from, const glm::vec3 &amp;to, const ci::Color &amp;color=ci::Color::white(), float width=1.0f, bool depthTest=false)</div><div class="ttdoc">Draws a 3D line.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:377</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_abe2f0a133e9bb7aa5cb1fba102f4a1e1"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#abe2f0a133e9bb7aa5cb1fba102f4a1e1">pepr3d::ModelView::getOverrideNormalBuffer</a></div><div class="ttdeci">std::vector&lt; glm::vec3 &gt; &amp; getOverrideNormalBuffer()</div><div class="ttdoc">Returns a reference to the override normal buffer, so you can read it or write to it.</div><div class="ttdef"><b>Definition:</b> ModelView.h:165</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a82f24b5d17a8352e76a69d87f4359d39"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a82f24b5d17a8352e76a69d87f4359d39">pepr3d::ModelView::drawTriangleHighlight</a></div><div class="ttdeci">void drawTriangleHighlight(const size_t triangleIdx)</div><div class="ttdoc">Draws a highlight (3 lines with a contrasting color) of a specified triangle ID.</div><div class="ttdef"><b>Definition:</b> ModelView.h:70</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_aa8dcae17a2801bbc3f6f26d919f12224"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#aa8dcae17a2801bbc3f6f26d919f12224">pepr3d::ModelView::onMouseDown</a></div><div class="ttdeci">void onMouseDown(ci::app::MouseEvent event)</div><div class="ttdoc">On mouse-down event over the ModelView area.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:106</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_ad6af1ab71ae31eb1a1e9290a1e5e45e3"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#ad6af1ab71ae31eb1a1e9290a1e5e45e3">pepr3d::ModelView::enableWireframe</a></div><div class="ttdeci">void enableWireframe(bool enable=true)</div><div class="ttdoc">Sets whether the wireframe of Geometry should be rendered.</div><div class="ttdef"><b>Definition:</b> ModelView.h:88</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_afc02d10fd1a5a0607a6a494475139993"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#afc02d10fd1a5a0607a6a494475139993">pepr3d::ModelView::setFovZoomEnabled</a></div><div class="ttdeci">void setFovZoomEnabled(bool enabled)</div><div class="ttdoc">Resets the camera and sets zoom to be field-of-view based (so on zoom, the camera position does not c...</div><div class="ttdef"><b>Definition:</b> ModelView.h:127</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_acd9a0fe559b6443aa3baeae23fd21809"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#acd9a0fe559b6443aa3baeae23fd21809">pepr3d::ModelView::updateVboAndBatch</a></div><div class="ttdeci">void updateVboAndBatch()</div><div class="ttdoc">Recalculates the OpenGL vertex buffer object and the Cinder batch.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:201</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a8cbad5b695e0e63ff5b77545bcc77286"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a8cbad5b695e0e63ff5b77545bcc77286">pepr3d::ModelView::getOverrideIndexBuffer</a></div><div class="ttdeci">std::vector&lt; uint32_t &gt; &amp; getOverrideIndexBuffer()</div><div class="ttdoc">Returns a reference to the override index buffer, so you can read it or write to it.</div><div class="ttdef"><b>Definition:</b> ModelView.h:170</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_ab25e5abfcab1d8869e2ef78b44c98721"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#ab25e5abfcab1d8869e2ef78b44c98721">pepr3d::ModelView::resize</a></div><div class="ttdeci">void resize()</div><div class="ttdoc">Called when the ModelView should recalculate its size.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:23</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a76ad73738050d3aabb681b53e5ea8398"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a76ad73738050d3aabb681b53e5ea8398">pepr3d::ModelView::setup</a></div><div class="ttdeci">void setup()</div><div class="ttdoc">Setups the camera and shaders. Call only once!</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:9</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a7223e1c00bbf6401b11b55d49bed71c5"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a7223e1c00bbf6401b11b55d49bed71c5">pepr3d::ModelView::onMouseMove</a></div><div class="ttdeci">void onMouseMove(ci::app::MouseEvent event)</div><div class="ttdoc">On mouse-move event over the ModelView area.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:141</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html">pepr3d::CameraUi</a></div><div class="ttdoc">Enables user interaction with a CameraPersp via the mouse.</div><div class="ttdef"><b>Definition:</b> CameraUi.h:37</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a746d83e4e97ca487e3c78c4576b808d9"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a746d83e4e97ca487e3c78c4576b808d9">pepr3d::ModelView::setModelTranslate</a></div><div class="ttdeci">void setModelTranslate(glm::vec3 translate)</div><div class="ttdoc">Sets the 3D translation of the Geometry object.</div><div class="ttdef"><b>Definition:</b> ModelView.h:118</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a872e02f519f6737a69b427271f6e6c96"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a872e02f519f6737a69b427271f6e6c96">pepr3d::ModelView::onMouseUp</a></div><div class="ttdeci">void onMouseUp(ci::app::MouseEvent event)</div><div class="ttdoc">On mouse-up event over the ModelView area.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:125</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_a91d166d8c1ff522ed0b37ba9e4a16501"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#a91d166d8c1ff522ed0b37ba9e4a16501">pepr3d::ModelView::setModelRoll</a></div><div class="ttdeci">void setModelRoll(float roll)</div><div class="ttdoc">Sets the current roll (rotation in the axis not controlled by CameraUi) of the Geometry object.</div><div class="ttdef"><b>Definition:</b> ModelView.h:108</div></div>
<div class="ttc" id="classpepr3d_1_1_main_application_html"><div class="ttname"><a href="classpepr3d_1_1_main_application.html">pepr3d::MainApplication</a></div><div class="ttdoc">The main Cinder-based application, represents a window, handles events, thread pool,...</div><div class="ttdef"><b>Definition:</b> MainApplication.h:38</div></div>
<div class="ttc" id="structpepr3d_1_1_model_view_1_1_mesh_data_override_html"><div class="ttname"><a href="structpepr3d_1_1_model_view_1_1_mesh_data_override.html">pepr3d::ModelView::MeshDataOverride</a></div><div class="ttdoc">Override currently displayed mesh data, making it possibly to change displayed mesh without chaning t...</div><div class="ttdef"><b>Definition:</b> ModelView.h:224</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_ab428e44311e1ada48f4224f1cfd32915"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#ab428e44311e1ada48f4224f1cfd32915">pepr3d::ModelView::drawGeometry</a></div><div class="ttdeci">void drawGeometry()</div><div class="ttdoc">Draws the Geometry.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:296</div></div>
<div class="ttc" id="classpepr3d_1_1_model_view_html_ae6cfd84f9d3dc6d3c98e8dcc905dba42"><div class="ttname"><a href="classpepr3d_1_1_model_view.html#ae6cfd84f9d3dc6d3c98e8dcc905dba42">pepr3d::ModelView::initOverrideFromBasicGeoemtry</a></div><div class="ttdeci">void initOverrideFromBasicGeoemtry()</div><div class="ttdoc">Initialize override buffer to data from non-detailed geometry.</div><div class="ttdef"><b>Definition:</b> ModelView.cpp:153</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_da5c6b39c0a2f54e57df6799511cd3ab.html">ui</a></li><li class="navelem"><b>ModelView.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
